6.2 Configuring the Switch  
  6.2.4 Configuring static MAC addresses  
It may be decided that it is desirable for a MAC address to be permanently assigned to an interface. The reasons for assigning a permanent MAC address to an interface include:
  • The MAC address will not be aged out automatically by the switch.
  • A specific server or user workstation must be attached to the port and the MAC address is known.
  • Security is enhanced.

To set a static MAC address entry for a switch:

Switch(config)#mac-address-table static <mac-address of host> interface FastEthernet <Ethernet numer> vlan

To remove this entry use the no form of the command:

Switch(config)#no mac-address-table static <mac-address of host> interface FastEthernet <Ethernet number> vlan <vlan name>

 

Lab Activity

Lab Exercise: Configuring Static MAC Addresses

In this lab, the student will create a static address entry in the switch MAC table.

   
 

Lab Activity

e-Lab Activity: Configuring Static MAC Addresses

In this lab, the student will configure static MAC addresses.

   
 

Web Links

Adding and Removing Static Address Entries

http://www.cisco.com/univercd/cc/t d/doc/product/l an/cat2950/12111ea1/ scg/swadmin.htm#xtocid72